package unionfindset.driver;

import unionfindset.impl.RawUnionFindSet;
import unionfindset.proto.UnionFindSet;

/**
 * @author wujun
 * @date 17-11-29.
 */
public class UnionFindSetDriver {
    public static void main(String[] args) {
        UnionFindSet<Integer> set = new RawUnionFindSet();

        set.init(10);
        set.union(2, 3);

        set.union(4, 6);
        set.union(6, 2);

        set.display();
    }
}
